package com.gsit.job.flows;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.springframework.stereotype.Component;

@Component
public class KeywordsSearchFlow extends SearchFlow{
	
	protected void doSearch(){
		driver.get(searchCriteria.getUrl());
		
		WebElement keywordElement = driver.findElement(By.name("anw"));
		keywordElement.sendKeys(searchCriteria.getSearchQuery());
		
	/*	WebElement maxExp = driver.findElement(By.name("mxe"));
		maxExp.sendKeys(endExp.toString());
		
		if(searchCriteria.getSearchType() == SearchType.EXEP_WOMEN){
			driver.findElement(By.id("spnchksex")).click();
		}*/		
		driver.findElement(By.id("spnchknvd")).click();
		
		WebElement webElement = driver.findElement(By.id("search_submit"));
		webElement.submit(); 
		
		sleep(1000);
		
	}
	
	
	
	

}
